package com.xjrsoft.module.customerTwo.EMP.dormitory_room.mapper;

import com.xjrsoft.module.customerTwo.EMP.dormitory_room.entity.TDormitoryRoom;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 *  Mapper 接口
 *
 * @author dongxinhang
 * @since 2023-07-20
 */
public interface TDormitoryRoomMapper extends BaseMapper<TDormitoryRoom> {

    /**
     * 获取楼层基础数据
     * @return
     */
    List<Map> getFloorData();

    /**
     * 导入时判断房间号是否有重复
     * @param roomNumberSet 房间号set
     * @return 已存在的房间号
     */
    List<String> getRoomNumberList(@Param("roomNumberSet") Set<String> roomNumberSet);

    TDormitoryRoom getByRoomNumber(String roomNumber);
}
